﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Admin_NavMenu.aspx.cs" Inherits="QiCms.Web.Admin.Admin_NavMenu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="QBSCmsContentPlaceHolder" runat="server">
    <form id="TableForm" runat="server">
    <div class="tpl-content-wrapper">
        <ol class="am-breadcrumb">
            <li><a href="Index.aspx" class="am-icon-home">首页</a></li>
            <li class="am-active">导航管理</li>
        </ol>
        <div class="tpl-portlet-components">
            <div class="portlet-title">
                <div class="caption font-green bold"><span class="am-icon-bars"></span> 导航列表（仅支持二级菜单）</div>
            </div>

            <div class="tpl-block">
                <div class="am-g">
                    <div class="am-u-sm-12 am-u-md-6">
                        <div class="am-btn-toolbar">
                            <div class="am-btn-group am-btn-group-xs">
                                <button type="button" class="am-btn am-btn-default am-btn-success" onclick="window.location.href='Admin_NavMenuMg.Aspx?Act=Add';" ><span class="am-icon-plus"></span> 新增导航</button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="am-g">
                    <div class="am-u-sm-12">
                                <asp:DataGrid ID="NavMenuTable" runat="server" OnItemCommand="NavMenuTable_ItemCommand" OnItemDataBound="NavMenuTable_ItemDataBound" Width="100%" GridLines="None" CssClass="am-table am-table-striped am-table-hover table-main">
				                    <Columns>
                                        <asp:BoundColumn DataField="Menuid" HeaderText="ID" ItemStyle-Width="5%"></asp:BoundColumn>
					                    <asp:HyperLinkColumn DataTextField="MenuName" DataTextFormatString="<img alt='导航链接' src='/Template/admin/images/admin_www.gif' border='0'/>{0}" HeaderText="标题" ItemStyle-Width="30%"></asp:HyperLinkColumn>
					                    <asp:BoundColumn DataField="MenuAlt" HeaderText="链接说明" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="30%"></asp:BoundColumn>
					                    <asp:ButtonColumn ButtonType="LinkButton" CommandName="OrderUp" HeaderText="上升" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="50" Text="↑"></asp:ButtonColumn>
					                    <asp:ButtonColumn ButtonType="LinkButton" CommandName="OrderDown" HeaderText="下降" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="50" Text="↓"></asp:ButtonColumn>
					                    <asp:TemplateColumn ItemStyle-CssClass="am-btn-group am-btn-group-xs" HeaderText="操作" ItemStyle-Width="100%">
						                    <ItemTemplate>
                                                <asp:LinkButton ID="EditBtn" runat="server" CommandName="Edit" CssClass="am-btn am-btn-default am-btn-xs am-text-secondary"><span class="am-icon-pencil-square-o"></span>编辑</asp:LinkButton>
							                    <asp:LinkButton ID="DeleteBtn" runat="server" CommandName="Delete" CssClass="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"><span class="am-icon-trash-o"></span>删除</asp:LinkButton>
						                    </ItemTemplate>
					                    </asp:TemplateColumn>
				                    </Columns>
			                    </asp:DataGrid>
                    <hr>
                    </div>
                    <div class="am-text-danger" style="font-size:12px;margin-top: 10px; width: 100%; text-align: center">
				        注意：删除主菜单将同时删除其下属所有子菜单。
			        </div>
                </div>
            </div>
            <div class="tpl-alert"></div>
        </div>
    </div>
    </form>
</asp:Content>
